<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :background="{ background: '#fff' }"
      :border-bottom="false"
      title="返现记录"
    ></u-navbar>
        <!-- <mescroll-body
        ref="mescrollRef"
        @init="mescrollInit"
        top="0"
        @down="downCallback"
        :up="upOption"
        @up="upCallback"
      > -->
    <view class="list">
      <view class="item">
        <view class="explain"
          >解释:0~30天，累计交易金额大于1000元并且交易笔数大于0笔，返直推金额249元并且返直推积分120个，同时奖励盟主金额0元，奖励盟友金额0元
        </view>

        <view class="row">
          <view class="label">返直推金额</view>
          <view class="value">249</view>
        </view>

        <view class="row">
          <view class="label">返直推积分</view>
          <view class="value">120</view>
        </view>

        <view class="row">
          <view class="label">时间</view>
          <view class="value">2024-01-02 14:13:24</view>
        </view>
      </view>
    </view>
        <!-- </mescroll-body> -->
  </view>
</template>
<script>
import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins.js';
export default {
    mixins: [MescrollMixin],
  data() {
    return { upOption: {
        page: {
          num: 0,
          size: 10,
        },
        noMoreSize: 5,
        empty: {
          icon: 'https://api.hjsfpay.com/image/newimg/all-noData.png',
          tip: '',
        },
      },
      list:[],
      mescroll: null,};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
    mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    downCallback() {
      this.list = [];
      this.mescroll.resetUpScroll();
    },
    upCallback(page) {
      this.getData(page);
    },
    getData(page){

    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  padding: 30rpx;
  text-align: center;
  background-color: #f5f5f5;
}

.list {
  width: 100%;
  overflow: hidden;

  .item {
    float: left;
    margin-bottom: 30rpx;
    width: 100%;
    padding: 30rpx;
    background: #ffffff;
    border-radius: 16rpx;
    .explain {
      width: 100%;
      font-weight: 400;
      font-size: 24rpx;
      color: #333333;
      line-height: 1.5;
      text-align: left;
    }

    .row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 30rpx;
      width: 100%;
      .label {
        font-weight: 400;
        font-size: 24rpx;
        color: #999999;
        text-align: left;
      }

      .value {
        font-weight: 400;
        font-size: 24rpx;
        color: #333333;
        text-align: right;
      }
    }
  }
}
</style>
